package zzr.library.db.obj;

import androidx.room.Entity;
import androidx.room.PrimaryKey;

@Entity(tableName = "book")
public class BookDO {

    @PrimaryKey(autoGenerate = true)
    public int bid;

    /**
     * ISBN
     */
    public String isbn;

    /**
     * 书名
     */
    public String name;

    /**
     * 出版社
     */
    public String press;

    /**
     * 书架
     */
    public String shelf;

    /**
     * 是否在库
     */
    public boolean in;

    public BookDO(int bid, String isbn, String name, String press, String shelf, boolean in) {
        this.bid = bid;
        this.isbn = isbn;
        this.name = name;
        this.press = press;
        this.shelf = shelf;
        this.in = in;
    }

}
